function generateCode(formName, displayIn)
{
var script_path = "http://www.social4free.com/autokey.php";
var keywords = document.forms[formName].elements["keywords"].value;
keywords = keywords.replace(" ", "");
var keywords_array = new Array();
var the_code = "";
keyword_array = keywords.split(",");
the_code += "<script type=\"text/javascript\">\n";
the_code += "var key = \"wTs84ElR\";\n";
the_code += "var pub = \"" + keyword_array.join(", ") + "\";\n";
the_code += "</script>\n";
the_code += "<script type=\"text/javascript\" src="---.htm" +  script_path + "\"></script>";
displayCode(displayIn, the_code);
}
function displayCode(displayIn, the_code){
var the_element = document.getElementById(displayIn);
the_element.value = "";
the_element.value = the_code;
}